package com.emm.yixun.common.model.dto;

import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.Range;

public class VillaModel {
	@NotEmpty(message = "组团信息不能为空!")
	private String excel_0; // 组团
	private String excel_1; // 楼栋（排屋）
	@NotEmpty(message = "别墅名称不能为空")
	private String excel_2; // 别墅
//	@NotEmpty(message = "房产类型不能为空!")
//	private String excel_3; // 房产类型
	private String excel_4; // 户型名称
	private String excel_5; // 房型
	@Range(min = 0, max = 10000, message = "房屋建筑面积只能为数字")
	private String excel_6; // 房屋建筑面积
	/*@NotEmpty(message = "套内建筑面积不能为空!")*/
	private String excel_7; // 套内建筑面积
	//@Range(min = 0, max = 10000, message = "分摊面积只能为数字")
	private String excel_8; // 分摊面积
	//@Range(min = 0, max = 10000, message = "花园面积只能为数字")
	private String excel_9; // 花园面积
	//@Range(min = 0, max = 10000, message = "地下室面积只能为数字")
	private String excel_10; // 地下室面积
	//@Range(min = 0, max = 10000, message = "地下室面积只能为数字")
	private String excel_11; // 地下室面积
	//@Range(min = 0, max = 10000, message = "赠送面积只能为数字")
	private String excel_12; // 赠送面积
	/*@NotEmpty(message = "状态不能为空!")*/
	/*private String excel_14;*/ // 状态
	//private String excel_15; // 备注
	/*@NotEmpty(message = "业态不能为空")*/
	private String excel_16; // 大业态 
	private String excel_17; // 业态 industMarkEnum
	
	public String getExcel_0() {
		return excel_0;
	}

	public void setExcel_0(String excel_0) {
		this.excel_0 = excel_0;
	}

	public String getExcel_4() {
		return excel_4;
	}

	public void setExcel_4(String excel_4) {
		this.excel_4 = excel_4;
	}

	public String getExcel_5() {
		return excel_5;
	}

	public void setExcel_5(String excel_5) {
		this.excel_5 = excel_5;
	}

	public String getExcel_6() {
		return excel_6;
	}

	public void setExcel_6(String excel_6) {
		this.excel_6 = excel_6;
	}

	public String getExcel_7() {
		return excel_7;
	}

	public void setExcel_7(String excel_7) {
		this.excel_7 = excel_7;
	}

	public String getExcel_8() {
		return excel_8;
	}

	public void setExcel_8(String excel_8) {
		this.excel_8 = excel_8;
	}

	public String getExcel_9() {
		return excel_9;
	}

	public void setExcel_9(String excel_9) {
		this.excel_9 = excel_9;
	}

	public String getExcel_10() {
		return excel_10;
	}

	public void setExcel_10(String excel_10) {
		this.excel_10 = excel_10;
	}

	public String getExcel_12() {
		return excel_12;
	}

	public void setExcel_12(String excel_12) {
		this.excel_12 = excel_12;
	}

	/*public String getExcel_14() {
		return excel_14;
	}

	public void setExcel_14(String excel_14) {
		this.excel_14 = excel_14;
	}*/

	/*public String getExcel_15() {
		return excel_15;
	}

	public void setExcel_15(String excel_15) {
		this.excel_15 = excel_15;
	}
*/
	public String getExcel_1() {
		return excel_1;
	}

	public void setExcel_1(String excel_1) {

		if (excel_1 == null || excel_1 == "") {
			this.excel_1 = excel_1;
		} else {
			if (isNumeric(excel_1)) {
				this.excel_1 = new Double(excel_1).intValue() + "";
			} else {
				this.excel_1 = excel_1;
			}

		}
	}

	public String getExcel_2() {
		return excel_2;
	}

	public void setExcel_2(String excel_2) {
		if (excel_2 == null || excel_2 == "") {
			this.excel_2 = excel_2;
		} else {
			if (isNumeric(excel_2)) {
				this.excel_2 = new Double(excel_2).intValue() + "";
			} else {
				this.excel_2 = excel_2;
			}

		}
	}

//	public String getExcel_3() {
//		return excel_3;
//	}
//
//	public void setExcel_3(String excel_3) {
//		this.excel_3 = excel_3;
//	}

	public String getExcel_11() {
		return excel_11;
	}

	public void setExcel_11(String excel_11) {
		this.excel_11 = excel_11;
	}

	public boolean isNumeric(String str) {
		try {
			Double.valueOf(str);
		} catch (Exception e) {
			return false;
		}
		return true;
	}

	public String getExcel_16() {
		return excel_16;
	}

	public void setExcel_16(String excel_16) {
		this.excel_16 = excel_16;
	}

	public String getExcel_17() {
		return excel_17;
	}

	public void setExcel_17(String excel_17) {
		this.excel_17 = excel_17;
	}
}
